package com.kfy.databinding2;

/**
 * @ProjectName: JetpackDemo
 * @Package: com.kfy.databinding
 * @Author: K.F.Y
 * @Date: 2022/4/26
 */
public class StarUtils {

    public static String getStar(int star) {
        switch (star) {
            case 1:
                return "一星";
            case 2:
                return "二星";
            case 3:
                return "三星";
            case 4:
                return "四星";
            case 5:
                return "五星";
            default:
                return "无";
        }
    }

}
